package main

import (
	grpc2 "google.golang.org/grpc"
	"hotel-app/common/consul"
	"hotel-app/common/grpc"
	"hotel-app/common/models/log"
	"hotel-app/common/models/mysql"
	"hotel-app/common/models/redis"
	"hotel-app/common/nacos"
	"hotel-app/common/viper"
	"hotel-app/service/internal"
)

func main() {
	viper.GetViper()
	nacos.NewNacos()
	consul.Consul()
	mysql.InitMysql()
	redis.InitRedis()
	log.InitLog()
	grpc.RegisterGrpc(func(server *grpc2.Server) {
		internal.Registers(server)
	})
}
